function OpenFile(fName : Str255; var refNum : integer) : integer;

Opens the file and returns the file reference number.  This function returns any error encountered.

Also see:  CloseFile  ReadFile